package imageswipe 
{
	import flash.display.Sprite;
	import flash.geom.Point;
	import imageswipe.navigation.SwipeNavigation;
	import imageswipe.vo.NavigationVO;
	
	/**
	 * ...
	 * @author 
	 */
	public class Main extends Sprite 
	{
		private var _swipeNavigation:SwipeNavigation;
		
		public function Main() 
		{
			var _navigationVO:NavigationVO = new NavigationVO;
			_navigationVO.imageSwipeVO.imageVO.vImagePath.push
			(
				"assets/img/1.jpg",
			    "assets/img/2.jpg",
			    "assets/img/3.jpg",
			    "assets/img/4.jpg",
			    "assets/img/5.jpg",
			    "assets/img/6.jpg"
			)
			_navigationVO.imageSwipeVO.imageWidth = 638;
			_navigationVO.imageSwipeVO.imageHeight = 388;
			
			_navigationVO.dotIndicatorVO.numberOfDots = _navigationVO.imageSwipeVO.imageVO.vImagePath.length;
			
			_swipeNavigation = new SwipeNavigation;
			_swipeNavigation.dataProvider = _navigationVO;
			var __x:Number = (_navigationVO.imageSwipeVO.imageWidth - int(_swipeNavigation.dotIndicatorWidth())) / 2;
			_swipeNavigation.setNavigationPosition(new Point(__x, 350));
			addChild(_swipeNavigation);
		}
		
	}

}